<%@ page import="java.util.Date"%>
<%@ page import="java.text.DateFormat"%>
<%@ page import="mail.SendMail"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="edu.boun.cmpe.elele.cotrans.dbOperations.*"%>
<%@ page import="java.util.logging.Level"%>
<%@ page import="java.util.logging.Logger"%>
<%@ page import="javax.mail.MessagingException"%>

<%
//String transID = request.getParameter("transID");
            String transID = "1";
//String username = session.getAttribute("username").toString();
            String username = "agacho";
//String invited = request.getParameter("person");
            String invited = "nana";

            DbOperations db = new DbOperations();
            String userID = db.getUserID(username).toString();
            String userIDInv = db.getUserID(invited).toString();

            db.insertInvitationInfo(userID, userIDInv, transID);
            String[] emailTo={"aydemirfb@gmail.com"} ;
             

            String subject = "Do you want to make a translation";
            String message = username + " invites you to a translation.Please check it from the system!";
            SendMail sm = new SendMail();
            sm.SendYourMail(emailTo, subject, message, "cotransbeta@gmail.com");



%>